package com.zjhd.sealcutting.dao;

import com.zjhd.sealcutting.domain.EntryInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface EntryInfoMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(EntryInfo record);

    EntryInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EntryInfo record);

    int updateByPrimaryKey(EntryInfo record);

    List<EntryInfo> queryParamEntryList(Map<String, Object> map);

    long queryParamEntryListCount(Map<String, Object> map);

    /**
     * TODO 根据用户查询词条
     * @author wangchao
     * @date 2020/12/14 15:04
     * @param
     * @return
     */
    List<EntryInfo> queryByUserIdEntry(Integer userId);

    /**
     * TODO  查询所有已分配用户词条
     * @author wangchao
     * @date 2020/12/14 15:04
     * @param
     * @return
     */
    List<EntryInfo> queryAllocatedUserEntry();
}